]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dbusServices/screencast: Quote filename in pipeline
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 10 Aug 2020 23:34:03 +0000 (01:34 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 11 Aug 2020 11:50:44 +0000 (11:50 +0000)
Otherwise Gst fails to parse the pipeline string if the filename
contains spaces, as all words following the first are interpreted
as additional Gst elements.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1403

js/dbusServices/screencast/screencastService.js

index 99ad59f2ebadd84ea9493a95cbe5895b6d202861..f7683d48216699b2062fc337724d62b4c4694d69 100644 (file)
@@ -224,7 +224,7 @@ var Recorder = class {
             video/x-raw,max-framerate=${framerate}/1 !
             videoconvert !
             ${this._pipelineString} !
-            filesink location=${this._filePath}`;
+            filesink location="${this._filePath}"`;
         fullPipeline = this._substituteThreadCount(fullPipeline);
 
         this._pipeline = Gst.parse_launch_full(fullPipeline,